import $H from '../request'
// 培训统计数据
export function numsForMy() {
  return $H.request({
    url: `/trainTrainingInfo/numsForMy`,
    method: 'post',
	token:true
  })
}
//练习首页
export function getPracticeDayAndSign(data) {
  return $H.request({
    url: `/exam/userexam/getPracticeDayAndSign`,
    method: 'post',
	token:true,
	data
  })
}
//答题
export function subPracticeDayAndSign(data) {
  return $H.request({
    url: `/exam/userexam/subPracticeDayAndSign`,
    method: 'post',
	token:true,
	data
  })
}
//题库列表
export function getQuestBankList() {
  return $H.request({
    url: `/exam/userexam/getQuestBankList`,
    method: 'post',
	token:true
  })
}
//根据题库获取题库内容
export function getQuestBankById(data) {
  return $H.request({
    url: `/exam/userexam/getQuestBankById`,
    method: 'post',
	token:true,
	data
  })
}
//获取题库对应的题目
export function getPracticeQuestList(data) {
  return $H.request({
    url: `/exam/userexam/getPracticeQuestList`,
    method: 'post',
	token:true,
	data
  })
}
//题库上传答题卡
export function submitPracticePaper(data) {
  return $H.request({
    url: `/exam/userexam/submitPracticePaper`,
    method: 'post',
	token:true,
	data
  })
}
//题库练习 练习记录
export function myPracticeRecords(data) {
  return $H.request({
    url: `/exam/userexam/myPracticeRecords`,
    method: 'post',
	token:true,
	data
  })
}
//题库练习  练习详情 
export function myPracticeRecordsDetail(data) {
  return $H.request({
    url: `/exam/userexam/myPracticeRecordsDetail`,
    method: 'post',
	token:true,
	data
  })
}

//首页培训数据
export function pageForMy(data) {
   return $H.request({
     url: `/trainTrainingInfo/pageForMy`,
     method: 'post',
 	token:true,
 	data
   })
 }
 

//培训签到数量
export function numsForSign(data) {
   return $H.request({
     url: `/trainTrainingInfo/numsForSign`,
     method: 'post',
 	token:true,
 	data
   })
 }
// 是否签到
export function ifSign(data) {
   return $H.request({
     url: `/trainTrainingInfo/ifSign`,
     method: 'post',
 	token:true,
 	data
   })
 }
 //签到
 export function sign(data) {
    return $H.request({
      url: `/trainTrainingInfo/sign`,
      method: 'post',
  	token:true,
  	data
    })
  }
 
//培训基础信息
export function baseInfo(data) {
   return $H.request({
     url: `/trainTrainingInfo/baseInfo`,
     method: 'post',
 	token:true,
 	data
   })
 }

//培训课件
export function courseList(data) {
   return $H.request({
     url: `/trainTrainingInfo/tchrCourseLessonList`,
     method: 'post',
 	token:true,
 	data
   })
 }
// 培训播放视频

export function trainingLessonWatch(data) {
   return $H.request({
     url: `/trainTrainingInfo/trainingLessonWatch`,
     method: 'post',
 	token:true,
 	data
   })
 }